<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script>
    var n=1;
    for(var i=1;i<=9;i++)
    {
    n=(n+1)*2;
    }
    
    document.write("猴子第一天摘了"+n+"个桃子");
    </script>
</head>
<body>
    
</body>
</html>